<?php
/*
	插件初始化
*/
namespace jy_saleapp;
defined('BY_JYA') or exit('error');
function init($plugin){
	//定义本场景的一些独立,为空表示共用电商客的
	$plugin->weishop_order_detail='';
	$plugin->weishop_order_list='';
	$plugin->syscolor=$plugin->plugin_setting('basic')['syscolor']?:'';
	$plugin->plugins=array();
	$plugin->datatypes=array(
		'head'=>'头像',
		'nickname'=>'昵称',
		'qr'=>'二维码',
		'img'=>'图片',
		'title'=>'标题',
		'desc'=>'描述',
		'text'=>'自定义文字',
	);
	$plugin->datapushs=array(
		'head'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'head',
						'width' => '80',
						'height' => '80',
		),
		'qr'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'qr',
						'width' => '80',
						'height' => '80',
		),
		'nickname'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'nickname',
						'width' => '120',
						'height' => '26',
		),
		'img'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'img',
						'width' => '200',
						'height' => '200',
		),
		'title'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'title',
						'width' => '226',
						'height' => '50',
		),
		'mysn'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'mysn',
						'width' => '226',
						'height' => '50',
		),
		'thumb'=>array(
						'left' => '0',
						'top' => '0',
						'type' => 'thumb',
						'width' => '316',
						'height' => '316',
		),
		'text'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'text',
						'width' => '260',
						'height' => '26',
						'value' => '自定义文字',
		),
	);
	$plugin->goodsdatademo=array(
		array(
						'left' => '130',
						'top' => '15',
						'type' => 'head',
						'width' => '60',
						'height' => '60',
		),
		array(
						'left' => '130',
						'top' => '80',
						'type' => 'nickname',
						'width' => '120',
						'height' => '25',
						'size' => '9',
						'value' => '粉丝昵称',
						'color'=>'#333',
		),
		array(
						'left' => '116',
						'top' => '100',
						'type' => 'desc',
						'width' => '130',
						'height' => '25',
						'size' => '9',
						'value' => '我的邀请码：XXX',
						'color'=>'#999',
		),
		array(
						'left' => '65',
						'top' => '130',
						'type' => 'qr',
						'width' => '190',
						'height' => '190',
		),
		array(
						'left' => '125',
						'top' => '326',
						'type' => 'title',
						'width' => '100',
						'height' => '25',
						'size' => '12',
						'bold'=>1,
						'value' => 'APP标题',
						'color'=>'#333',
		),
		array(
						'left' => '76',
						'top' => '350',
						'type' => 'text',
						'width' => '180',
						'height' => '25',
						'size' => '9',
						'value' => '请用手机浏览器扫上面APP二维码',
						'color'=>'#999',
		),
		array(
						'left' => '60',
						'top' => '370',
						'type' => 'text',
						'width' => '250',
						'height' => '25',
						'size' => '8',
						'value' => '可以将二维分享给您的好友，邀请TA加入！',
						'color'=>'#999',
		),
	);
}